<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>user</title>
  <#include "/include/layui-top.html">
  <style>
  /* 以下代码解决layer中select引发的滚动条问题，有需要时打开注释 */
  .layui-layer-page .layui-layer-content { overflow: visible !important; }
  </style>
</head>
<body style='overflow: scroll;overflow:hidden'>
<form class="layui-form layui-card-body" action="javascript:void(0);">
  <div class="layui-form-item">
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="userName" name="userName" autocomplete="off" placeholder="用户名" />
    </div>
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="password" name="password" autocomplete="off" placeholder="密码" />
    </div>
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="nick" name="nick" autocomplete="off" placeholder="昵称/备注名" />
    </div>
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="position" name="position" autocomplete="off" placeholder="职位名称" />
    </div>
  <!-- 
  	<div class="layui-inline">
  	  <input class="layui-input" type="text" id="phone" name="phone" autocomplete="off" placeholder="电话号码" />
    </div>
  -->
  <!-- 
  	<div class="layui-inline">
	  <select name="isLocked" lay-verify="">
		<option value=""></option>
		<option value="YES">YES</option>
		<option value="NO">NO</option>
	  </select>      
	</div>
  -->
  <!-- 
  	<div class="layui-inline">
  	  <input class="layui-input" type="number" id="userRoleId" name="userRoleId" autocomplete="off" placeholder="外键-用户权限关系ID" />
    </div>
  -->
  <!-- 
  	<div class="layui-inline">
	  <select name="personStatus" lay-verify="">
		<option value=""></option>
		<option value="zaizhi">zaizhi</option>
		<option value="lizhi">lizhi</option>
		<option value="chanjia">chanjia</option>
		<option value="xiujia">xiujia</option>
	  </select>      
	</div>
  -->
  <!-- 
  	<div class="layui-inline">
	  <select name="sex" lay-verify="">
		<option value=""></option>
		<option value="male">male</option>
		<option value="female">female</option>
	  </select>      
	</div>
  -->
  <!-- 
    <div class="layui-inline">
	  <input class="layui-input" type="text" id="createTimeStrStart" name="createTimeStrStart" autocomplete="off" placeholder="create_timeStrStart" readonly />
    </div>
    <div class="layui-inline">
	  <input class="layui-input" type="text" id="createTimeStrEnd" name="createTimeStrEnd" autocomplete="off" placeholder="create_timeStrEnd" readonly />
    </div>
  -->
  <!-- 
    <div class="layui-inline">
	  <input class="layui-input" type="text" id="updateTimeStrStart" name="updateTimeStrStart" autocomplete="off" placeholder="update_timeStrStart" readonly />
    </div>
    <div class="layui-inline">
	  <input class="layui-input" type="text" id="updateTimeStrEnd" name="updateTimeStrEnd" autocomplete="off" placeholder="update_timeStrEnd" readonly />
    </div>
  -->
    <div class="layui-inline">
    	<div class="layui-btn-group">
    		<button class="layui-btn" lay-submit lay-filter="search-opt">查询</button>
    		<button class="layui-btn" id="search-more">查询更多</button>
    	</div>
    </div>
  </div>
  <table id="table" lay-size="sm" class="layui-hide" lay-filter="table"></table>
</form>
<#include "/include/layui-end.html">
<script type="text/html" id="toolbar">
  <div class="layui-btn-group">
	<@shiro.hasPermission name="user_add_opt">
    <button class="layui-btn layui-btn-sm" lay-event="addData-opt">
	  <i class="layui-icon">&#xe654;</i> 新增
	</button>
	</@shiro.hasPermission>
	<@shiro.hasPermission name="user_delete_opt">
	<button class="layui-btn layui-btn-sm layui-btn-danger" lay-event="batch-del-opt">
	  <i class="layui-icon">&#xe640;</i> 批量删除
	</button>
	</@shiro.hasPermission>
  </div>
  <button class="layui-btn layui-btn-sm layui-btn-normal" lay-event="refresh-opt">
	<i class="layui-icon">&#xe669;</i> 刷新
  </button>
</script>
<script type="text/html" id="optbar">
  <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
  <@shiro.hasPermission name="user_edit_opt">
  <a class="layui-btn layui-btn-xs" lay-event="edit-opt">编辑</a>
  </@shiro.hasPermission>
  <@shiro.hasPermission name="user_delete_opt">
  <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del-opt">删除</a>
  </@shiro.hasPermission>
</script>
<script>
	layui.config({
		base: '/components/app/boss/user/'
	}).use(['table','laydate','layer','form','userPage'],function(){
		var userPage = layui.userPage;
		userPage.render();
	});
</script>
</body>
<!-- windows弹窗定义开始 -->
<div id="windows" style="display: none;">
	<form class="layui-form layui-fluid" id="win-form" lay-filter="win-form" action="javascript:;">
	<input type="hidden" id="id-win" name="id"/>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">用户名</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="userName-win" name="userName" placeholder="用户名"   autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">昵称/备注名</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="nick-win" name="nick" placeholder="昵称/备注名"   autocomplete="off" />
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">职位名称</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="position-win" name="position" placeholder="职位名称"   autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">电话号码</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="phone-win" name="phone" placeholder="电话号码"   autocomplete="off" />
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	    	<div class="layui-inline">
	            <label class="layui-form-label">性别</label>
	            <div class="layui-input-inline">
				  <select name="sex" lay-verify="">
					<option value=""></option>
					<option value="male">男</option>
					<option value="female">女</option>
				  </select>      
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">是否锁定</label>
	            <div class="layui-input-inline">
				  <select name="isLocked" lay-verify="">
					<option value=""></option>
					<option value="YES">锁定</option>
					<option value="NO">未锁定</option>
				  </select>      
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">在职状态</label>
	            <div class="layui-input-inline">
				  <select name="personStatus" lay-verify="">
					<option value=""></option>
					<option value="zaizhi">在职</option>
					<option value="lizhi">离职</option>
					<option value="chanjia">产假</option>
					<option value="xiujia">事假</option>
				  </select>      
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">密码</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="password" id="password-win" name="password" placeholder="密码"  lay-verify="required" autocomplete="off" />
	            </div>
	        </div>
	    </div>
		<input id="win-submit" lay-submit lay-filter="win-submit" hidden="true"/>
	</form>
</div>
<!-- windows弹窗定义结束 -->
<!-- 查询windows弹窗定义开始 -->
<div id="windows-search" style="display: none;">
	<form class="layui-form layui-fluid" id="win-search-form" lay-filter="win-search-form" action="javascript:;">
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">id</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="number" id="id-win" name="id" placeholder="id"  autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">用户名</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="userName-win" name="userName" placeholder="用户名"  autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">密码</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="password-win" name="password" placeholder="密码"  autocomplete="off" />
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">昵称/备注名</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="nick-win" name="nick" placeholder="昵称/备注名"  autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">职位名称</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="position-win" name="position" placeholder="职位名称"  autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">电话号码</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="text" id="phone-win" name="phone" placeholder="电话号码"  autocomplete="off" />
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">is_locked</label>
	            <div class="layui-input-inline">
				  <select name="isLocked" lay-verify="">
					<option value=""></option>
					<option value="YES">YES</option>
					<option value="NO">NO</option>
				  </select>
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">外键-用户权限关系ID</label>
	            <div class="layui-input-inline">
	                <input class="layui-input" type="number" id="userRoleId-win" name="userRoleId" placeholder="外键-用户权限关系ID"  autocomplete="off" />
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">person_status</label>
	            <div class="layui-input-inline">
				  <select name="personStatus" lay-verify="">
					<option value=""></option>
					<option value="zaizhi">zaizhi</option>
					<option value="lizhi">lizhi</option>
					<option value="chanjia">chanjia</option>
					<option value="xiujia">xiujia</option>
				  </select>
	            </div>
	        </div>
	    </div>
	    <div class="layui-form-item">
	        <div class="layui-inline">
	            <label class="layui-form-label">sex</label>
	            <div class="layui-input-inline">
				  <select name="sex" lay-verify="">
					<option value=""></option>
					<option value="male">male</option>
					<option value="female">female</option>
				  </select>
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">create_time</label>
	            <div class="layui-input-inline">
				    <div class="layui-inline">
					  <input class="layui-input" type="text" id="createTimeStrStart-win" name="createTimeStrStart" autocomplete="off" placeholder="create_timeStrStart" readonly />
				    </div>
				    <div class="layui-inline">
					  <input class="layui-input" type="text" id="createTimeStrEnd-win" name="createTimeStrEnd" autocomplete="off" placeholder="create_timeStrEnd" readonly />
				    </div>
	            </div>
	        </div>
	        <div class="layui-inline">
	            <label class="layui-form-label">update_time</label>
	            <div class="layui-input-inline">
				    <div class="layui-inline">
					  <input class="layui-input" type="text" id="updateTimeStrStart-win" name="updateTimeStrStart" autocomplete="off" placeholder="update_timeStrStart" readonly />
				    </div>
				    <div class="layui-inline">
					  <input class="layui-input" type="text" id="updateTimeStrEnd-win" name="updateTimeStrEnd" autocomplete="off" placeholder="update_timeStrEnd" readonly />
				    </div>
	            </div>
	        </div>
	    </div>
	</form>
</div>
<!-- 查询windows弹窗定义结束 -->
</html>